package com.zl.csMall.mine.favorites.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zl.csMall.mine.favorites.po.Favorites;

public interface FavoritesService extends IService<Favorites> {

    /**
     * @description: 判断该用户是否收藏过该商品
     * @param userId 用户ID
     * @param commodityId 商品ID
     * @param isDelete 是否需要删除（取消收藏）
     * @return: true：已收藏
     * @author ChenNing
     * @date: 2025-10-21 14:32
     */
    boolean isExistence(long userId, long commodityId, boolean isDelete);

}
